<?php 

include_once('../../public/function.php');
  $config = include_once('../../public/config.php');
  $_POST['ctime'] =time();
  $res =add($config,'admin',$_POST);

 if ($res){
     echo "<script>
     alert('添加成功');window.location.href='index.php'</script>";
 }else{
 	echo "<script>
     alert('添加失败');window.location.href='index.php'</script>";
 }
 ?>